﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace Timeline.Models
{
        /// <summary>
        /// The model that represents the information about the time frame and the dates in those time frame
        /// </summary>
        public class EventsModel
        {
            public DateTime startDate { get; set;}
            public int Duration { get; set;}
            /// <summary>
            /// list with all the dates and the events that those dates can hold
            /// </summary>
            public List<EventDate> Dates { get; set; }
        }

        /// <summary>
        /// The model that contains the events for the date
        /// </summary>
        public class EventDate
        {
            /// <summary>
            /// List of events for this date
            /// </summary>
            public List<Event> Events { get;  set; }
            /* Date on which the events take place */
            public DateTime Datum { get; set; }
        }
    
}